import 'package:flutter/material.dart';

class ActivityItems extends StatefulWidget{

  final String title;

  final Widget content;

  ActivityItems({Key key, @required this.title, @required this.content}) : super(key: key);

  @override
  _ActivityItemsState createState() {
    // TODO: implement createState
    return _ActivityItemsState();
  }
}

class _ActivityItemsState extends State<ActivityItems>{

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        brightness: Brightness.light,
        elevation: 0.3,
        title: new Text('${widget.title}'),
        centerTitle: true,
      ),
      body: widget.content,
    );
  }
}